<template>
  <div>
    <div class="warn-top">
      <h4 style="text-align: left; color: #126bff">人员信息管理</h4>
      <!--         :rules="rules" -->
      <el-form
        ref="elForm"
        :model="formData"
        size="medium"
        label-width="80px"
        style="display: flex; justify-content: space-between"
      >
        <el-form-item label="姓名:" prop="name" style="width: 350px">
          <el-input
            v-model="formData.name"
            placeholder="请输入申请人姓名"
            clearable
            :style="{ width: '60%' }"
          >
          </el-input>
        </el-form-item>
        <el-form-item label="人员状态:" prop="name" style="width: 350px">
          <el-select
            v-model="formData.appltStatus"
            clearable
            placeholder="请选择审批状态"
            :style="{ width: '60%' }"
            @change="select"
          >
            <el-option
              v-for="item in appltStatus"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="添加时间:" prop="time">
          <el-date-picker
            type="daterange"
            v-model="formData.time"
            format="yyyy-MM-dd"
            value-format="yyyy-MM-dd"
            :style="{ width: '60%' }"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
            range-separator="至"
            clearable
          ></el-date-picker>
        </el-form-item>
        <el-form-item size="small ">
          <el-button
            @click="resetForm()"
            style="background-color: #e6effa; color: #126bff"
            >重置</el-button
          >
          <el-button
            type="primary"
            @click="submitForm(formData)"
            style="color: #ffffff; background-color: #126bff"
            >查询</el-button
          >
        </el-form-item>
      </el-form>
    </div>
    <!-- 表格 -->
    <div class="warn-content" style="width: 100%">
      <div>
        <el-button icon="el-icon-plus" @click="addPeople">添加人员</el-button>
        <el-button icon="el-icon-delete" @click="Multiple()"
          >批量删除</el-button
        >
      </div>
      <el-table
        ref="multipleTable"
        @selection-change="handleSelectionChange"
        :data="
          tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)
        "
        style="width: 100%; cursor: pointer"
      >
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column prop="id" label="序号" width="100"> </el-table-column>
        <el-table-column prop="name" label="照片">
          <img
            style="width: 20px; height: 30px"
            src="@/assets/logo.png"
            alt=""
          />
        </el-table-column>
        <el-table-column prop="name" label="姓名"> </el-table-column>
        <el-table-column prop="sex" label="性别"> </el-table-column>
        <el-table-column prop="phone" label="手机号"> </el-table-column>
        <el-table-column prop="idCard" label="身份证号"> </el-table-column>
        <el-table-column prop="status" width="180" label="人员状态">
          <template slot-scope="scope">
            <el-switch
              style="display: block"
              v-model="scope.row.status"
              active-color="#126BFF"
              inactive-color="#ff4949"
              active-text="启用"
              inactive-text="关闭"
              @change="chagePeopleStatsus"
            >
            </el-switch>
          </template>
        </el-table-column>
        <el-table-column prop="peopleRole" label="人员角色"> </el-table-column>
        <el-table-column prop="time" label="添加时间"> </el-table-column>
        <el-table-column label="操作">
          <!-- <template slot-scope="scope">
            <el-button @click="handleClick(scope.row)" type="text" size="small"
              >详情0</el-button
            >
          </template> -->
          <template slot-scope="scope">
            <div>
              <el-button
                @click="detailClick(scope.row)"
                type="text"
                size="small"
                >详情</el-button
              >
              <el-button @click="editClick(scope.row)" type="text" size="small"
                >编辑</el-button
              >
              <el-button
                style="color: #ff4444"
                @click="deletePeople(scope.row)"
                type="text"
                size="small"
                >删除</el-button
              >
            </div>
          </template>
        </el-table-column>
      </el-table>
      <!-- 分页器 -->
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="currentPage"
        :page-sizes="[1, 2, 4, 8]"
        :page-size="pageSize"
        layout="total, prev, pager, next, sizes"
        :total="tableData.length"
        style="float: right; margin-top: 20px"
      >
      </el-pagination>
    </div>
    <!-- 添加人员弹窗 -->
    <div>
      <el-dialog
        v-bind="$attrs"
        v-on="$listeners"
        :visible.sync="dialogAddVisible"
        :before-close="handleClose"
        title="添加人员"
      >
        <el-form
          :model="alertData"
          style="display: flex; justify-content: space-between"
          ref="elForm"
        >
          <div class="formContent" style="width: 50%">
            <p class="row">
              <span>姓名：</span
              ><input
                type="text"
                style="outline: none"
                v-model="alertData.name"
                placeholder="请输入姓名"
              />
            </p>
            <p class="row">
              <span>手机号：</span
              ><input
                type="text"
                v-model="alertData.phone"
                placeholder="请输入手机号"
              />
            </p>
            <p class="row">
              <span>人员状态：</span>
              <el-select
                v-model="alertData.status"
                placeholder="请选择人员状态"
                clearable
                :style="{ width: '70%' }"
                @change="selectPeopleStatus"
              >
                <el-option
                  v-for="(item, index) in peopleStatusOptions"
                  :key="index"
                  :label="item.label"
                  :value="item.value"
                  :disabled="item.disabled"
                ></el-option>
              </el-select>
            </p>
            <p class="row" style="display: flex">
              <span>登录密码：</span>
              <input
                type="text"
                v-model="alertData.passWord"
                placeholder="请输入密码"
                style=" margin: 10px 0 10px 0; border-radius;: 10px 0 0 10px;
                "
              />
            </p>
            <p class="row">
              <span>备注信息：</span
              ><input
                type="text"
                v-model="alertData.remarks"
                placeholder="请输入备注信息"
              />
            </p>
          </div>
          <div class="formContent" style="width: 50%">
            <p class="row">
              <span>性别：</span>
              <el-select
                v-model="alertData.sex"
                placeholder="请选择性别"
                clearable
                :style="{ width: '70%' }"
                @change="selectSex"
              >
                <el-option
                  v-for="(item, index) in sexOptions"
                  :key="index"
                  :label="item.label"
                  :value="item.value"
                  :disabled="item.disabled"
                ></el-option>
              </el-select>
            </p>
            <p class="row">
              <span>身份证号： </span
              ><input
                type="text"
                v-model="alertData.idCard"
                placeholder="请输入身份证号"
              />
            </p>
            <p class="row">
              <span>人员角色：</span>
              <el-select
                v-model="alertData.peopleRole"
                placeholder="请选择人员角色"
                clearable
                :style="{ width: '70%' }"
                @change="selsecPeopleRole"
              >
                <el-option
                  v-for="(item, index) in peopleRoleOptions"
                  :key="index"
                  :label="item.label"
                  :value="item.value"
                  :disabled="item.disabled"
                ></el-option>
              </el-select>
            </p>
            <p class="row" style="display: flex">
              <span>照片：</span>
              <el-upload
                class="avatar-uploader"
                :show-file-list="false"
                :on-success="handleAvatarSuccess"
                :before-upload="beforeAvatarUpload"
                action=""
              >
                <img v-if="imageUrl" :src="imageUrl" class="avatar" />
                <i v-else class="el-icon-plus avatar-uploader-icon"></i>
              </el-upload>
            </p>
          </div>
        </el-form>
        <div slot="footer" class="footerButton">
          <el-button @click="dialogAddVisible = false">取消</el-button>
          <el-button type="primary" @click="addConfirm(alertData)"
            >确定</el-button
          >
        </div>
      </el-dialog>
    </div>
    <!-- 详情弹窗 -->
    <div>
      <el-dialog
        title="详情"
        :visible.sync="dialogEditVisible"
        width="550px"
        :before-close="handleClose"
        style="border-radius: 20px"
      >
        <div style="display: flex; flex-wrap: wrap; text-align: left">
          <div class="upIpfo">
            <p>姓名：{{ detaile.name }}</p>
            <p>性别：{{ detaile.sex }}</p>
          </div>
          <div class="upIpfo">
            <p>手机号：{{ detaile.phone }}</p>
            <p class="text">身份证号：{{ detaile.idCard }}</p>
          </div>
          <div class="upIpfo">
            <p>
              人员状态:
              <span v-if="detaile.status">启用</span>
              <span v-if="!detaile.status">关闭</span>
            </p>
            <p class="text">人员角色：{{ detaile.peopleRole }}</p>
          </div>
          <div class="upIpfo">
            <div style="flex: 1; display: flex; flex-direction: column">
              <p style="width: 100%">登录密码：{{ detaile.passWord }}</p>
              <p class="text" style="width: 100%">
                备注信息：{{ detaile.remarks }}
              </p>
              <p class="text" style="width: 100%">
                添加事件: {{ detaile.time }}
              </p>
            </div>
            <p>
              照片：
              <span style="vertical-align: text-top">
                <img
                  style="width: 50px; height: 50px"
                  :src="detaile.imgSrc"
                  alt=""
                />
              </span>
            </p>
          </div>
        </div>
      </el-dialog>
    </div>
    <!-- 编辑弹窗 -->
    <div>
      <el-dialog
        v-bind="$attrs"
        v-on="$listeners"
        :visible.sync="dialogVisible"
        :before-close="handleClose"
        title="编辑人员"
      >
        <el-form
          :model="alertData"
          style="display: flex; justify-content: space-between"
          ref="elForm"
        >
          <div class="formContent" style="width: 50%">
            <p class="row">
              <span>姓名：</span
              ><input
                type="text"
                style="outline: none"
                v-model="alertData.name"
                placeholder="请输入姓名"
              />
            </p>
            <p class="row">
              <span>手机号：</span
              ><input
                type="text"
                v-model="alertData.phone"
                placeholder="请输入手机号"
              />
            </p>
            <p class="row">
              <span>人员状态：</span>
              <el-select
                v-model="alertData.status"
                placeholder="请选择人员状态"
                clearable
                :style="{ width: '70%' }"
                @change="selectPeopleStatus"
              >
                <el-option
                  v-for="(item, index) in peopleStatusOptions"
                  :key="index"
                  :label="item.label"
                  :value="item.value"
                  :disabled="item.disabled"
                ></el-option>
              </el-select>
            </p>
            <p class="row" style="display: flex">
              <span>登录密码：</span>
              <input
                type="text"
                v-model="alertData.passWord"
                placeholder="请输入密码"
                style="width: 54%; margin: 10px 0 10px 0; border-radius;: 10px 0 0 10px;
                "
              />
              <button
                @click="resetPassword()"
                v-if="dialogAddVisible"
                style="
                  width: 50px;
                  height: 30px;
                  background: rgba(18, 107, 255, 0.1);
                  border-radius: 0px 8px 8px 0px;
                  opacity: 1;
                  border: 1px solid #126bff;
                  margin: 11px 0 0px 0;
                  color: #126bff;
                "
              >
                重置
              </button>
            </p>
            <p class="row">
              <span>备注信息：</span
              ><input
                type="text"
                v-model="alertData.remarks"
                placeholder="请输入备注信息"
              />
            </p>
          </div>
          <div class="formContent" style="width: 50%">
            <p class="row">
              <span>性别：</span>
              <el-select
                v-model="alertData.sex"
                placeholder="请选择性别"
                clearable
                :style="{ width: '70%' }"
                @change="selectSex"
              >
                <el-option
                  v-for="(item, index) in sexOptions"
                  :key="index"
                  :label="item.label"
                  :value="item.value"
                  :disabled="item.disabled"
                ></el-option>
              </el-select>
            </p>
            <p class="row">
              <span>身份证号： </span
              ><input
                type="text"
                v-model="alertData.idCard"
                placeholder="请输入身份证号"
              />
            </p>
            <p class="row">
              <span>人员角色：</span>
              <el-select
                v-model="alertData.peopleRole"
                placeholder="请选择人员角色"
                clearable
                :style="{ width: '70%' }"
                @change="selsecPeopleRole"
              >
                <el-option
                  v-for="(item, index) in peopleRoleOptions"
                  :key="index"
                  :label="item.label"
                  :value="item.value"
                  :disabled="item.disabled"
                ></el-option>
              </el-select>
            </p>
            <p class="row" style="display: flex">
              <span>照片：</span>
              <el-upload
                class="avatar-uploader"
                :show-file-list="false"
                :http-request="httpRequest"
                :on-success="handleAvatarSuccess"
                :before-upload="beforeAvatarUpload"
                :on-error="upfail"
                action="http://fake-image-url.com"
              >
                <img v-if="imageUrl" :src="imageUrl" class="avatar" />
                <i v-else class="el-icon-plus avatar-uploader-icon"></i>
              </el-upload>
            </p>
          </div>
        </el-form>
        <div slot="footer" class="footerButton">
          <el-button @click="dialogVisible = false">取消</el-button>
          <el-button type="primary" @click="confirm()">确定</el-button>
        </div>
      </el-dialog>
    </div>
  </div>
</template>
<script>
export default {
  name: "WARN",
  components: {},
  data() {
    return {
      currentPage4: 4,
      // pages: {
      // 按页数查询数据
      currentPage: 1,
      pageSize: 4,
      value: "",
      // },
      appltStatus: [
        {
          value: "3",
          label: "全部",
        },
        {
          value: "1",
          label: "已通过",
        },
        {
          value: "2",
          label: "未通过",
        },
        {
          value: "0",
          label: "待审核",
        },
      ],
      formData: {
        name: "",
        time: "",
        appltStatus: "",
      },
      detaile: {},
      selsectCheck: false, // 是否多选
      multipleSelection: [], // 多选数据
      tableData: [
        {
          id: 1,
          name: "王小虎",
          sex: "男",
          status: true,
          phone: "18759627889",
          idCard: "1234567890555",
          time: "2016-05-02 15:30:56",
          passWord: "123456",
          peopleRole: "管理员",
          remarks: "",
          imgSrc: require("@/assets/logo.png"),
        },
        {
          id: 2,
          name: "王小虎",
          sex: "男",
          status: false,
          phone: "18759627889",
          idCard: "1234567890555",
          time: "2016-05-02 15:30:56",
          passWord: "123456",
          peopleRole: "管理员",
          remarks: "备注信息",
          imgSrc: require("@/assets/logo.png"),
        },
        {
          id: 3,
          name: "王小虎",
          sex: "男",
          status: false,
          phone: "18759627889",
          idCard: "1234567890555",
          time: "2016-05-02 15:30:56",
          passWord: "123456",
          peopleRole: "管理员",
          imgSrc: require("@/assets/logo.png"),
        },
        {
          id: 4,
          name: "王小虎",
          sex: "男",
          status: true,
          phone: "18759627889",
          idCard: "1234567890555",
          time: "2016-05-02 15:30:56",
          passWord: "123456",
          peopleRole: "管理员",
          imgSrc: require("@/assets/logo.png"),
        },
        {
          id: 5,
          name: "王小虎",
          sex: "男",
          status: true,
          phone: "18759627889",
          idCard: "1234567890555",
          time: "2016-05-02 15:30:56",
          passWord: "123456",
          peopleRole: "管理员",
          imgSrc: require("@/assets/logo.png"),
        },
        {
          id: 6,
          name: "王小虎",
          sex: "男",
          status: true,
          phone: "18759627889",
          idCard: "1234567890555",
          time: "2016-05-02 15:30:56",
          passWord: "123456",
          peopleRole: "管理员",
          imgSrc: require("@/assets/logo.png"),
        },
      ],
      initTableData: [], // 数据接收
      form: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: "",
      },
      datalist: [],
      dialogVisible: false, // 详情弹窗状态
      dialogEditVisible: false, // 编辑弹窗状态
      dialogAddVisible: false, // 添加人员状态
      value2: true, // 审批默认通过
      peopleStatus: 0,
      alertData: {
        // 弹窗数据
        name: "",
        peopleStatus: 0,
        status: "",
        passWord: "",
        remarks: "",
        sex: "",
        idCard: "",
        peopleRole: "",
        picker: "",
        phone: "",
      },
      pickerAction: "https://jsonplaceholder.typicode.com/posts/",
      pickerfileList: [],
      peopleStatusOptions: [
        {
          label: "启用",
          value: true,
        },
        {
          label: "关闭",
          value: false,
        },
      ],
      sexOptions: [
        {
          label: "男",
          value: 1,
        },
        {
          label: "女",
          value: 0,
        },
      ],
      peopleRoleOptions: [
        {
          label: "管理员",
          value: 1,
        },
        {
          label: "普通人员",
          value: 0,
        },
      ],
      imageUrl: "", //上传照片
    };
  },
  watch: {
    $route(to, from) {
      console.log(to, from);
    },
  },
  created() {
    console.log(666);
    // window.addEventListener
  },
  methods: {
    // 查询信息
    submitForm(formData) {
      console.log(formData);
    },
    // 查询重置
    resetForm() {
      this.$refs["elForm"].resetFields();
      this.tableData = this.initTableData;
    },
    // 添加人员
    addPeople() {
      // this.dialogVisible = true;
      this.dialogAddVisible = true;
    },
    addConfirm(alertData) {
      this.dialogAddVisible = false;
      console.log("添加成功");
      console.log(alertData);
      this.tableData.push(alertData);
      this.alertData = "";
    },
    // 批量删除
    Multiple() {
      console.log("批量删除");
      console.log(this.multipleSelection);
    },
    handleSelectionChange(val) {
      console.log(val);
      this.multipleSelection = val;
    },
    //  表格switch状态切换
    chagePeopleStatsus(e) {
      console.log(e);
    },
    // 编辑弹窗
    editClick(row) {
      // 编辑人员信息
      console.log(row);
      this.dialogVisible = true;
      this.alertData = row; // 弹窗信息
      console.log(this.alertData);
    },
    // 下拉框选择事件
    selectPeopleStatus(e) {
      // 选择人员状态
      console.log(e);
      this.alertData.status = e;
    },
    // 选择人员性别
    selectSex(e) {
      console.log(e);
      this.alertData.sex = e;
    },
    // 选择人员角色
    selsecPeopleRole(e) {
      console.log(e);
      this.alertData.peopleRole = e;
    },
    select(e) {
      console.log(e);
    },
    close() {
      this.dialogVisible = false;
      // this.$emit("update:visible", false);
    },
    // 重置密码
    resetPassword() {
      this.alertData.passWord = 1234568;
    },
    confirm() {
      // 确定;
      console.log("编辑确认");
      this.dialogVisible = false;
      this.alertData = ""; // 清空状态
    },
    // 详情弹窗相关操作
    detailClick(row) {
      console.log(row);
      this.dialogEditVisible = true;
      this.detaile = row;
    },
    handleClose(done) {
      // this.dialogVisible = false;
      this.$confirm("确认关闭？")
        .then(() => {
          done();
        })
        .catch(() => {});
    },
    // 分页器相关操作
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
      this.pageSize = val;
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
      this.currentPage = val;
    },

    applAll(e) {
      console.log(e);
      if (e == true) {
        console.log("开启默认通过");
        this.tableData.forEach((e) => {
          console.log(e.status);
          e.status = 1;
        });
      } else {
        console.log("关闭默认通过");
      }
    },
    deletePeople(e) {
      console.log(e);
    },

    // handelConfirm(formdate) {
    //   console.log(formdate);
    //   // this.$refs["elForm"].validate((valid) => {
    //   //   console.log(valid);
    //   //   if (!valid) return;
    //   //   this.close();
    //   // });
    // },
    // 上传图片
    handleAvatarSuccess(res, file) {
      // const fakeImageUrl = '
      console.log(file);
      console.log(res);
      // this.imageUrl = URL.createObjectURL(file.raw);
    },
    upfail(err, file) {
      console.log(err);
      console.log(file);
    },
    beforeAvatarUpload(file) {
      const isJPG = file.type === "image/jpeg";
      console.log(isJPG);
      // const isLt2M = file.size / 1024 / 1024 < 2;

      // if (!isJPG) {
      //   this.$message.error("上传头像图片只能是 JPG 格式!");
      // }
      // if (!isLt2M) {
      //   this.$message.error("上传头像图片大小不能超过 2MB!");
      // }
      // return isJPG && isLt2M;
    },
    //
  },
  mounted() {},
};
</script>
<style lang="scss" scoped>
.warn-top {
  // border: 1px red solid;
  padding: 10px;
  background-color: white;
  border-radius: 10px;
  width: 100%;
  height: 120px;
  box-sizing: border-box;
}
.warn-top {
  width: calc(100%);
}
/deep/.el-form-item {
  // border: 1px red solid;
  margin-top: 20px !important;
}
.el-table {
  width: calc(100%);
}
/deep/.el-form-item__label {
  // border: 1px red solid;
  width: 90px !important;
  height: 50px;
  line-height: 50px;
  // border: 1px red solid;
}
/deep/.el-range-editor--medium .el-range-separator {
  line-height: 21px;
  font-size: 14px;
}
/deep/ .el-range__icon {
  line-height: 21px;
}
/deep/.el-input--medium .el-input__icon {
  line-height: 44px !important;
}
.warn-content {
  margin-top: 20px;
  // border: 1px red solid;
  height: auto;
  background-color: white;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
}
.warn-content > div:nth-of-type(1) {
  display: flex;
  padding: 10px 0 10px 0;
  // border: 1px red solid;
}
.warn-content > div:nth-of-type(1) > button:nth-of-type(1) {
  font-size: small;
  width: 108px;
  height: 36px;
  background: #126bff;
  border-radius: 8px 8px 8px 8px;
  color: #ffffff;
}
.warn-content > div:nth-of-type(1) > button:nth-of-type(2) {
  font-size: small;
  color: #ffffff;
  width: 108px;
  height: 36px;
  background: #ff4444;
  border-radius: 8px 8px 8px 8px;
}
.el-table .el-table__cell {
  padding: 12px 0;
  min-width: 0;
  box-sizing: border-box;
  text-overflow: ellipsis;
  vertical-align: middle;
  position: relative;
  text-align: center;
}
.upIpfo {
  display: flex;
  width: 100%;
  // border: 1px red solid;
  justify-content: space-between;
}
.upIpfo p {
  color: #13213b;
  font-size: 14px;
  font-weight: 400;
  width: 50%;
  margin-top: 10px;
  // border: 1px red solid;
  display: inline-block;
  // background-color: skyblue;
}
/deep/.el-table__header-wrapper {
  // border: 1px red solid !important;
  border-radius: 10px 10px 0 0;
}
/deep/.el-table {
  border: 1px #d7dbe3 solid;
  border-radius: 10px;
}
/deep/.el-input--medium .el-input__icon {
  line-height: 30px;
}
/deep/.has-gutter tr th {
  color: black;
  text-align: center;
  border: 1px d7dbe3 solid;
  background-color: #ecf5ff;
}

/deep/.is-leaf {
  border: 1px #d7dbe3 solid !important;
  border-top: none !important;
  border-left: none !important;
}
/deep/.el-table__cell {
  text-align: center !important;
}
/deep/.el-dialog {
  border-radius: 15px !important;
}
/deep/.el-dialog__header {
  text-align: left;
  font-weight: 600;
}
/deep/.el-dialog__body {
  padding: 0 20px 20px 20px !important;
}
/deep/.el-input--suffix .el-input__inner {
  padding-right: 0px;
}
/deep/.el-range-editor.el-input__inner {
  position: relative !important;
  right: 20px !important;
}
/deep/.el-input__inner {
  border: 1px solid #c4c4cf !important;
  background-color: white !important;
}
// el-table_1_column_5   el-table__cell
.rowText {
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /*第几行裁剪*/
  -webkit-box-orient: vertical;
}
/deep/.el-switch__label.is-active {
  color: #ff4444;
}
.success {
  margin-right: 15px;
  width: 76px;
  height: 36px;
  background: #1cdc7c;
  border-radius: 10px;
  opacity: 1;
  border: none;
  color: #ffffff;
}
.refuse {
  width: 76px;
  height: 36px;
  background: #ff4444;
  border-radius: 10px;
  opacity: 1;
  border: none;
  color: #ffffff;
}
/deep/.el-switch__label.is-active {
  color: #126bff !important;
}

.pawd /deep/ .el-input__inner {
  border: 1px solid #d7dbe3 !important;
  background-color: white !important;
  border-radius: 10px 0 0 10px;
  width: 256px;
  float: left;
  position: relative;
  height: 40px !important;
}
.pawd /deep/.el-input-group__append {
  border: 1px #126bff solid;
  float: left;
  color: #126bff;
  background-color: #126bff 10%;
  border-radius: 0 10px 10px 0;
  height: 38px;
  text-align: center;
  line-height: 38px;
  width: 30px;
}
/deep/.el-upload {
  float: left !important;
}
/deep/.avatar-uploader-icon {
  border: 1px #c4c4cf solid;
  font-size: 28px;
  color: #8c939d;
  width: 50px !important;
  height: 50px !important;
  line-height: 50px !important;
  text-align: center;
}
/deep/.el-form-item__content {
  // border: 1px red solid !important;
  margin: 10px 0 10px 0;
  box-sizing: border-box;
}
.formContent p {
  height: 50px;
  line-height: 50px;
  text-align: left;
  // color: red;
}
.formContent p span {
  display: inline-block;
  // border: 1px red solid;
  width: 78px;
  text-align: right;
}
.row > input {
  padding-left: 10px;
  outline: none;
  // border: 1px red solid;
  width: 67%;
  height: 30px;
  background: #ffffff;
  opacity: 1;
  border: 1px solid #c4c4cf;
}
/deep/.el-input__suffix {
  position: absolute !important;
  top: 10px !important;
  text-align: center !important;
}
// 上传图片样式
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.avatar-uploader .el-upload:hover {
  border-color: #409eff;
}
.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  line-height: 178px;
  text-align: center;
}
.avatar {
  width: 178px;
  height: 178px;
  display: block;
}
.footerButton > button:nth-of-type(1) {
  width: 76px;
  height: 36px;
  text-align: center;
  background: #e6effa;
  border-radius: 8px;
  opacity: 1;
  color: #126bff;
}
.footerButton > button:nth-of-type(2) {
  width: 76px;
  height: 36px;
  text-align: center;
  background: #126bff;
  border-radius: 8px;
  color: #ffffff;
  opacity: 1;
}
</style>

